const requireContext = require.context("./", true, /\.([cm]?js|tsx?)$/);

requireContext.keys().forEach(filePath => {
	// 获取组件配置
	const module = requireContext(filePath);
	const [fileName] = filePath.split(/[./]/).filter(Boolean);
	exports[fileName] = module.default;
});

module.exports = exports;
